package kau.vo;

public class Writing {

	private int wNumber;
	private int bNumber;
	private String custId;
	private String title;
	private String content;
	private String writer;
	private int hits;
	private int password;
	private int IsPublic;
	private String writeTime;
	private String filePath;
	private int category;
	
	public Writing() {
	}

	public Writing(int wNumber, int bNumber, String custId, String title,
			String content, String writer, int hits, int password,
			int isPublic, String writeTime, String filePath, int category) {
		super();
		this.wNumber = wNumber;
		this.bNumber = bNumber;
		this.custId = custId;
		this.title = title;
		this.content = content;
		this.writer = writer;
		this.hits = hits;
		this.password = password;
		IsPublic = isPublic;
		this.writeTime = writeTime;
		this.filePath = filePath;
		this.category = category;
	}

	public int getwNumber() {
		return wNumber;
	}

	public void setwNumber(int wNumber) {
		this.wNumber = wNumber;
	}

	public int getbNumber() {
		return bNumber;
	}

	public void setbNumber(int bNumber) {
		this.bNumber = bNumber;
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public int getHits() {
		return hits;
	}

	public void setHits(int hits) {
		this.hits = hits;
	}

	public int getPassword() {
		return password;
	}

	public void setPassword(int password) {
		this.password = password;
	}

	public int isIsPublic() {
		return IsPublic;
	}

	public void setIsPublic(int isPublic) {
		IsPublic = isPublic;
	}

	public String getWriteTime() {
		return writeTime;
	}

	public void setWriteTime(String writeTime) {
		this.writeTime = writeTime;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public int getCategory() {
		return category;
	}

	public void setCategory(int category) {
		this.category = category;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + wNumber;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Writing other = (Writing) obj;
		if (wNumber != other.wNumber)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Writing [wNumber=" + wNumber + ", bNumber=" + bNumber
				+ ", custId=" + custId + ", title=" + title + ", content="
				+ content + ", writer=" + writer + ", hits=" + hits
				+ ", password=" + password + ", IsPublic=" + IsPublic
				+ ", writeTime=" + writeTime + ", filePath=" + filePath
				+ ", category=" + category + "]";
	}

}
